//
//  Home.swift
//  SwiftLoopers
//
//  Created by MAC on 2017/8/21.
//  Copyright © 2017年 Kevin. All rights reserved.
//

import UIKit

class Home: BaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        self.title = "首页"
        let button = UIButton.init(frame: CGRect.init(x: 0, y: 0, width: 100, height: 50))
        button.backgroundColor = UIColor.blue
        button.setTitleColor(UIColor.white, for: UIControlState.normal)
        button.setTitle("跳转", for: UIControlState.normal)
        button.addTarget(self, action: #selector(Home.goView), for: UIControlEvents.touchUpInside)
        button.center = self.view.center
        self.view.addSubview(button)
        
        // Do any additional setup after loading the view.
    }

    func goView() {
        let vc = Home()
        
//        let View = BaseNavigationController.init(rootViewController:vc )
        self.navigationController?.pushViewController(vc, animated: true)
    }
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
